import request from '@/utils/request'

// 查询竞拍记录列表
export function listAuction1(data) {
  return request({
    url: '/scp/auction/list',
    method: 'get',
    params: data
  })
}

// 查询竞拍记录列表
export function listAuction(data) {
  return request({
    url: '/scp/auction/list/gld',
    method: 'get',
    params: data
  })
}

// 查询竞拍记录详细
export function getAuction(auctionId) {
  return request({
    url: '/scp/auction/' + auctionId,
    method: 'get'
  })
}

// 新增竞拍记录
export function addAuction(data) {
  return request({
    url: '/scp/auction',
    method: 'post',
    data: data
  })
}

// 修改竞拍记录
export function updateAuction(data) {
  return request({
    url: '/scp/auction',
    method: 'put',
    data: data
  })
}

// 删除竞拍记录
export function delAuction(auctionId) {
  return request({
    url: '/scp/auction/' + auctionId,
    method: 'delete'
  })
}

//查询车名
export function selectCarName(carId) {
  return request({
    url: '/scp/auction/getCarName/' + carId,
    method: 'get'
  })
}

